home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1757 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  869 b 

  1. Path: ll.mit.edu!cogen
  2. From: cogen@ll.mit.edu (David Cogen)
  3. Newsgroups: gnu.g++.help,comp.lang.c++
  4. Subject: g++ with dbx (Solaris)
  5. Date: 12 Jan 1996 13:55:11 -0500
  6. Organization: Gatewayed from the GNU Project mailing list help-g++@prep.ai.mit.edu
  7. Sender: daemon@cis.ohio-state.edu
  8. Distribution: world
  9. Message-ID: <9601121353.AA09421@LL.MIT.EDU>
  10. References: <DL2DoK.4pw@ipmce.su>
  11.  
  12. Requirement: To use Sun's dbx debugger on a program compiled with g++.
  13.  
  14. Reason: Because dbx provides essential runtime pointer checking facilities
  15. which gdb doesn't provide.
  16.  
  17. System: Sun Sparcstation, gcc 2.7.0, SunOS 5.4 (Solaris)
  18.  
  19.  
  20. I compile the program as follows:
  21.  
  22. gcc -g test.cc -lg++
  23.  
  24. In place of -g I have also tried all the others: -gstabs, etc.
  25.  
  26. But when I run the executable with dbx, dbx doesn't find any debug info.
  27.  
  28.  
  29. Please tell me there's a way to do this! 
  30.  
  31.  
  32. -- David Cogen
  33.